package com.zjdiepu.www.model.yw.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 审批流转
 * @author xiongxiaotun
 *
 */
@ApiModel(value="SplzResponse", description="审批流转卡")
public class SplzResponse implements Serializable,Comparable<SplzResponse> {

	private final static long serialVersionUID = 1L;
	/**
	 * 业务状态
	 */
	@JSONField(serialize = false)
	private Integer busiStatus;
	/**
	 * 业务状态
	 */
	@JSONField(serialize = false)
	private Integer lastBusiStatus;
	/**
	 * 资金状态
	 */
	@JSONField(serialize = false)
	private Integer min;
	/**
	 * 资金状态
	 */
	@JSONField(serialize = false)
	private Integer max;
	/**
	 * 资金状态
	 */
	@JSONField(serialize = false)
	private Integer cw;
	
	/**
	 * 审批卡编号
	 */
	@ApiModelProperty(name="code",required=false,value="审批卡编号",example="splztab")
	private String code;
	/**
	 * 审批卡名称
	 */
	@ApiModelProperty(name="name",required=false,value="审批卡名称",example="财务审核一")
	private String name;
	/**
	 * 审批卡状态
	 */
	@ApiModelProperty(name="status",required=false,value="审批卡状态(null、0：未审批， 1：审批中，2：已审批)",example="1")
	private Integer status;
	
	/**
	 * 审批卡状态
	 */
	@ApiModelProperty(name="status",required=false,value="审批卡状态(null、0：未审批， 1：审批中，2：已审批)",example="1")
	private Integer sort;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getMin() {
		return min;
	}

	public void setMin(Integer min) {
		this.min = min;
	}

	public Integer getMax() {
		return max;
	}

	public void setMax(Integer max) {
		this.max = max;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	public Integer getBusiStatus() {
		return busiStatus;
	}

	public void setBusiStatus(Integer busiStatus) {
		this.busiStatus = busiStatus;
	}

	public Integer getLastBusiStatus() {
		return lastBusiStatus;
	}

	public void setLastBusiStatus(Integer lastBusiStatus) {
		this.lastBusiStatus = lastBusiStatus;
	}

	public Integer getCw() {
		return cw;
	}

	public void setCw(Integer cw) {
		this.cw = cw;
	}

	@Override
	public int compareTo(SplzResponse o) {
		if(null == o) {
			return -1;
		}
		Integer sort = o.getSort();
		if(null == sort) {
			return -1;
		}
		if(null == this.sort) {
			return 1;
		}
		return this.sort - sort;
	}
}
